package com.powernode.dataservice.service;

import com.powernode.api.pojo.PhoneBidInfo;
import com.powernode.api.service.BidInfoService;
import com.powernode.dataservice.mapper.BidInfoMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService(interfaceClass = BidInfoService.class,version = "1.0.0")
public class BidInfoServiceImpl implements BidInfoService {

    @Autowired
    private BidInfoMapper bidInfoMapper;

    @Override
    public List<PhoneBidInfo> queryBidByProductId(Integer productId, int index, int rows) {
        /*省略 条件判断*/
        List<PhoneBidInfo> phoneBidInfos = bidInfoMapper.selectBidByProductId(productId,index,rows);
        return phoneBidInfos;
    }
}
